package com.grf.hadoop.practice;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class HttpReducer extends Reducer<HttpBean, NullWritable, HttpBean, NullWritable> {
    @Override
    protected void reduce(HttpBean key, Iterable<NullWritable> values, Context context)
            throws IOException, InterruptedException {
        for (NullWritable v: values) {
            context.write(key, NullWritable.get());
        }

    }

}
